home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #3 / Amiga Plus CD - 2002 - No. 03.iso / AmiSoft / Dev / Gui / Cit.lha / CIT / citra / CITLabel.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-02-13  |  876 b   |  47 lines

  1. //
  2. //                    CITLabel include
  3. //
  4. //                        StormC
  5. //
  6. //                   version 2003.02.12
  7. //
  8.  
  9. #ifndef CITLABEL_H
  10. #define CITLABEL_H TRUE
  11.  
  12. #include "CITImage.h"
  13.  
  14. class CITLabel:public CITImage
  15. {
  16.   public:
  17.     CITLabel();
  18.     ~CITLabel();
  19.  
  20.     void Text(char* text);
  21.     void Font(char *Name, int Height, int Width = 0);
  22.     void FGPen(LONG pen);
  23.     void BGPen(LONG pen);
  24.     void Mode(UBYTE mode);
  25.     void SoftStyle(UBYTE style);
  26.     void Image(struct Image* im);
  27.     void DisposeImage(BOOL b = TRUE);
  28.     void Mapping(UWORD* map,DrawInfo* drInfo = NULL);
  29.     void Justification(UWORD pos);
  30.  
  31.   protected:  
  32.     virtual Object* NewObjectA(TagItem* tags);
  33.     
  34.   private:
  35.     void setTag(int index,ULONG attr,ULONG val);
  36.  
  37.     CITList  labTagList;
  38.     TagItem* labelTag;
  39. };
  40.     
  41. enum
  42. {
  43.   LABELCLASS_FLAGBITUSED = IMAGECLASS_FLAGBITUSED
  44. };
  45.  
  46. #endif
  47.